﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListContents.aspx.cs" MasterPageFile="~/RS.Master"
    Inherits="RealState.W.ListContents" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
    
.pagination {
  height: 36px;
  margin: 18px 0;
}

.pagination ul {
  display: inline-block;
  *display: inline;
  margin-bottom: 0;
  margin-left: 0;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  *zoom: 1;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination li {
  display: inline;
}

.pagination a {
  float: left;
  padding: 0 14px;
  line-height: 34px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-left-width: 0;
}

.pagination a:hover,
.pagination .active a {
  background-color: #f5f5f5;
}

.pagination .active a {
  color: #999999;
  cursor: default;
}

.pagination .disabled span,
.pagination .disabled a,
.pagination .disabled a:hover {
  color: #999999;
  cursor: default;
  background-color: transparent;
}

.pagination li:first-child a {
  border-left-width: 1px;
  -webkit-border-radius: 3px 0 0 3px;
     -moz-border-radius: 3px 0 0 3px;
          border-radius: 3px 0 0 3px;
}

.pagination li:last-child a {
  -webkit-border-radius: 0 3px 3px 0;
     -moz-border-radius: 0 3px 3px 0;
          border-radius: 0 3px 3px 0;
}

.pagination-centered {
  text-align: center;
}

.pagination-right {
  text-align: right;
}

.pager {
  margin-bottom: 18px;
  margin-left: 0;
  text-align: center;
  list-style: none;
  *zoom: 1;
}

.pager:before,
.pager:after {
  display: table;
  content: "";
}

.pager:after {
  clear: both;
}

.pager li {
  display: inline;
}

.pager a {
  display: inline-block;
  padding: 5px 14px;
  background-color: #fff;
  border: 1px solid #ddd;
  -webkit-border-radius: 15px;
     -moz-border-radius: 15px;
          border-radius: 15px;
}

.pager a:hover {
  text-decoration: none;
  background-color: #f5f5f5;
}

.pager .next a {
  float: right;
}

.pager .previous a {
  float: left;
}

.pager .disabled a,
.pager .disabled a:hover {
  color: #999999;
  cursor: default;
  background-color: #fff;
}
</style>
    <script type="text/javascript">
        // - dataTables
        $(document).ready(function() {
            $('#dataTable').dataTable({
                "sPaginationType": "full_numbers",
                "iDisplayLength": 20
            });
        });
    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container-fluid">
        <div class="content">
            <div class="row-fluid">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Danh sách tin đăng: &nbsp;&nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></h3>
                    </div>
                    <div class="box-content box-nomargin">
                        <div class="tab-content">
                            <div class="tab-pane active">
                                <table class='table table-striped table-bordered' id="dataTable">
                                    <thead>
                                        <tr>
                                            <th>
                                                Mã số
                                            </th>
                                            <th>
                                                Tiêu đề
                                            </th>
                                            <th>
                                                Giá
                                            </th>
                                            <th>
                                                Ngành nghề
                                            </th>
                                            <th>
                                                Địa điểm
                                            </th>
                                            <th>
                                                Ngày đăng
                                            </th>
                                            <th>
                                                Xem
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <asp:Repeater ID="Repeater1" runat="server">
                                            <ItemTemplate>
                                                <tr>
                                                    <td>
                                                        <%#Eval("CODE") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("TITLE") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("PRICE") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("TRADETYPE") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("DISTRICTNAME") %>/<%#Eval("CITYNAME") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("CREATEDTIME") %>
                                                    </td>
                                                    <td>
                                                        <a style="color: red;" href="ViewContents.aspx?ID=<%#Eval("ID") %>">Xem</a>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
